package com.gin.kotlin.no_gay_alliance.model

import com.gin.nga.response.message.PriMessage
import com.gin.nga.response.message.PriMessageList

/**
 * 私信列表
 * @property data List<PriMessage>?
 * @property page Int?
 * @property size Int?
 * @property hasNext Boolean?
 * @constructor
 */
data class PrivateMessageListModel(
    var data: List<PriMessage>? = null,
    var page: Int? = null,
    var size: Int? = null,
    var hasNext: Boolean=false,
) {
    constructor(res: PriMessageList):this(
        data = res.data,
        page = res.page,
        size = res.size,
        hasNext = res.hasNext()
    )
}